package com.prp.gwt.client.widgets.user.home;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.prp.gwt.client.widgets.user.home.UserStatePanel;

public class HomeView extends Composite {

	interface Binder extends UiBinder<Widget, HomeView> {
	}

	private static final Binder binder = GWT.create(Binder.class);
	private static HomeView instance;

	@UiField UserStatePanel userState;
	@UiField UserRecommendPanel userRecommend;
	@UiField PersonalArticalRecommend articalRecommend;
	@UiField MsgBoardRemindPanel msgRemind;
	
	public static HomeView getInstance() {
		if (instance == null)
			instance = new HomeView();
		return instance;
	}

	private HomeView() {
		initWidget(binder.createAndBindUi(this));
		addStyleName("topPanel");
	}

}
